;
(function() {
	var skill = {
		//是否可以邀请其它商家进行开站
		canInviteBus: function() {
			return !!this.getPerm().can_invite_bus;
		},
		//获取被自己邀请开站的商家
		getInviteBus:function () {
			var invite_bus_list = db.find_list(config.dbname.bus,{
				pid:this._id
			});
			return invite_bus_list.map(function (bus_info) {
				var bus =  BusCon.getInstance(bus_info);
				bus.url = bus.getOneVisitableUrl();
				return bus;
			});
		}.perm("this.getPerm().can_invite_bus", "权限不足，需开通成高级VIP才能使用"),
	};
	module.exports = skill;
	var db = require("../db/index");
	var DomainCon = require("../domain/_con");
	var GoodsCon = require("../goods/_con");
	var UserCon = require("../../core/user/_con");
	var BusCon = require("../../core/bus/_con");
	var AchCon = require("../ach/_con");
	var ClassifyCon = require("../bus.classify/_con");
	var TagCon = require("../bus.tag/_con");
	var LeagueCon = require("../league/_con");
	var BuffCon = require("../buff/_con");
	var BusUserBindCon = require("../bus_user_bind/_con");
	var BusGuideCon = require("../bus.guide/_con");
	var CommentCon = require("../comment/_con");
	var config = require("../_include/config");
	var data_cut = require("../_include/data_cut");
	var helper = require("../_include/helper");
	var md5 = require("../_include/md5");
	var $Object = require("../_include/$.Object");
	var $Array = require("../_include/$.Array");
	var tld = require('tldjs');
	var fs = require("fs");
	var Fiber = require('fibers');
}());